<div id="nav" >
  <ul>
       <li><span class="g{*lang v=lkey*}{*if $tab=='game'*}cur{*/if*}"><a href="{*$aOut.apiurl*}" target="_top">{*lang v=nav.game*}</a></span></li>
       <li><span class="p{*lang v=lkey*}{*if $tab=='pay'*}cur{*/if*}"><a href="{*$aOut.apiurl*}?m=game&a=pay" target="_blank" >{*lang v=nav.pay*}</a></span></li>
       <li><span class="f{*lang v=lkey*}{*if $tab=='group'*}cur{*/if*}"><a href="http://www.facebook.com/apps/application.php?id={*$aOut.apiid*}&v=app_2373072738" target="_blank">{*lang v=nav.group*}</a></span></li>
       {*if $tab=='game'*}<li><span class="i{*lang v=lkey*}{*if $tab=='invite'*}cur{*/if*}"><a href="#" onclick="showinvite();">{*lang v=nav.invite*}</a></span></li>{*/if*}
    </ul>
</div>